import { Http } from '@/network/request'
import { SubmitDTO } from './data.d'

// 提交
export const saveOrUpdate = (data: SubmitDTO) => {
  return Http.post<typeof data, null>('/codeDuckTag/saveOrUpdate', data, { typeStr: data.id ? '更新' : '新增' })
}
